list=[1,1,2,2,3,3]

#列表转集合去重

alist=set(list)
print(alist)

#遍历去重
#
for i in list :
    if list.count(i)>1 :
        list.remove(i)
print(list)

#设置空集进行去重
rlist=[]
for i in list:
    if rlist.count(i)==0:
        rlist.append(i)
print(rlist)